package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.StockBase;
import com.ruoyi.system.mapper.StockBaseMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.service.IStockBaseService;

/**
 * 每日基础数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-02-26
 */
@Service
public class StockBaseServiceImpl implements IStockBaseService 
{
    @Autowired
    private StockBaseMapper stockBaseMapper;

    /**
     * 查询每日基础数据
     * 
     * @param recordId 每日基础数据主键
     * @return 每日基础数据
     */
    @Override
    public StockBase selectStockBaseByRecordId(Long recordId)
    {
        return stockBaseMapper.selectStockBaseByRecordId(recordId);
    }

    /**
     * 查询每日基础数据列表
     * 
     * @param stockBase 每日基础数据
     * @return 每日基础数据
     */
    @Override
    public List<StockBase> selectStockBaseList(StockBase stockBase)
    {
        return stockBaseMapper.selectStockBaseList(stockBase);
    }

    /**
     * 新增每日基础数据
     * 
     * @param stockBase 每日基础数据
     * @return 结果
     */
    @Override
    public int insertStockBase(StockBase stockBase)
    {
        return stockBaseMapper.insertStockBase(stockBase);
    }

    /**
     * 修改每日基础数据
     * 
     * @param stockBase 每日基础数据
     * @return 结果
     */
    @Override
    public int updateStockBase(StockBase stockBase)
    {
        return stockBaseMapper.updateStockBase(stockBase);
    }

    /**
     * 批量删除每日基础数据
     * 
     * @param recordIds 需要删除的每日基础数据主键
     * @return 结果
     */
    @Override
    public int deleteStockBaseByRecordIds(Long[] recordIds)
    {
        return stockBaseMapper.deleteStockBaseByRecordIds(recordIds);
    }

    /**
     * 删除每日基础数据信息
     * 
     * @param recordId 每日基础数据主键
     * @return 结果
     */
    @Override
    public int deleteStockBaseByRecordId(Long recordId)
    {
        return stockBaseMapper.deleteStockBaseByRecordId(recordId);
    }
}
